package com.obixlabs.security.credentialsstore.services;

import java.rmi.RemoteException;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

import com.obixlabs.security.credentialsstore.model.User;

@WebService (	name=WebSSOService.SERVICE_NAME, 
				targetNamespace=SecurityServiceConstants.SECURITY_SERVICES_TARGET_NAMESPACE)
public interface WebSSOService extends SecurityService
{
	String SERVICE_NAME = "WebSSOService";
	
	@WebMethod(operationName="signon")
	String signon(	@WebParam String username,
					@WebParam String password)
					throws RemoteException;	

	@WebMethod(operationName="getCredentials")
	User getUserDetails(@WebParam String webSSOCookie)
						throws RemoteException;
	
	@WebMethod(operationName="isSessionActive")
	boolean isSessionActive(@WebParam String webSSOCookie)
							throws RemoteException;	
	
	@WebMethod(operationName="logout")
	void logout(@WebParam String webSSOCookie)
				throws RemoteException;
}